package com.sumainfor.wx.tenant.controller.rentadviser;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcMktFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;
import java.util.Map;

/**
 * 租客端调用活动相关
 */
@RestController
@RequestMapping("/rentadviser/RdWxActivity")
public class RdWxActivityController implements Serializable {
    @Autowired
    private ZpcMktFeign zpcMktFeign;
    /**
     * 根据房源编号查询活动优惠之后的价格
     */
    @PostMapping("/getOptimalActivity")
    public JsonResult getOptimalActivity(@RequestBody Map<String,Object> params){
        return zpcMktFeign.getOptimalActivity(params);
    }
}
